﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yto.Entities.Record
{
    /// <summary>
    /// 定义实体基本类型之创建者ID
    /// </summary>
    public interface ICreate : ICreateTime
    {
        /// <summary>
        /// 创建者ID
        /// </summary>
        [Column("CREATORID")]
        long? CreatorId { get; set; }
    }

    /// <summary>
    /// 增加创建者属性
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface ICreate<T> : ICreate
        where T : IEntity<long>
    {
        /// <summary>
        /// 创建者
        /// </summary>
        T Creator { get; set; }
    }
}
